package com.woniu.config;

import org.springframework.amqp.core.Binding;
import org.springframework.amqp.core.BindingBuilder;
import org.springframework.amqp.core.DirectExchange;
import org.springframework.amqp.core.Queue;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.amqp.rabbit.retry.MessageRecoverer;
import org.springframework.amqp.rabbit.retry.RepublishMessageRecoverer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.HashMap;

@Configuration
//@Component
public class  RabbitMQConfig {
    @Bean
    public Queue registerPhoneQueue(){
        return new Queue("register_phone_queue");
    }
    @Bean
    public Queue loginPhoneQueue(){
        return new Queue("login_phone_queue");
    }
    @Bean
    public Queue DelUserAddressConsumer(){
        return new Queue("del_user_address_queue");
    }



}
